package com.example.run_game;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;

import org.xml.sax.SAXException;

import android.location.Location;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainMenu extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_menu); 
        
        //Set up button listeners here
        Button preRunMenuButton = (Button)findViewById(R.id.enterPreRunMenuButton);
        preRunMenuButton.setOnClickListener(checkPreRunMenuPress);
		Button profileButton = (Button)findViewById(R.id.profileButton);
		profileButton.setOnClickListener(checkProfilePress);
		Button instructionsButton = (Button)findViewById(R.id.instructionsButton);
		instructionsButton.setOnClickListener(checkInstructionsPress);
    }

    private OnClickListener checkPreRunMenuPress = new OnClickListener() 
    {
		public void onClick(View v) 
		{
			Intent intent = new Intent(getBaseContext(), PreRunMenu.class);
			startActivity(intent);
		}
    };
    
    private OnClickListener checkProfilePress = new OnClickListener() 
    {
		public void onClick(View v) 
		{
			Intent intent = new Intent(getBaseContext(), PlayerProfile.class);
			startActivity(intent);
		}
    };
    
    private OnClickListener checkInstructionsPress = new OnClickListener() 
    {
		public void onClick(View v) 
		{
			Intent intent = new Intent(getBaseContext(), Instructions.class);
			startActivity(intent);
		}
    };

    
}



